home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / cc03.arc / PUT.C < prev    next >
Encoding:
C/C++ Source or Header  |  1986-03-15  |  347 b   |  40 lines

  1.  
  2. /* -- put.c  create archival file -- */
  3.  
  4. #include "stdio.h"
  5.  
  6. #define EOF -1
  7.  
  8. main()
  9. {
  10.     int  byte, ecode;
  11.     char *header;
  12.     static char hdr_msg[] = "this file is for archive purposes only";
  13.  
  14.     header = hdr_msg;
  15.     ecode = puts(header);
  16.  
  17.     while ( (byte = getchar()) != EOF)
  18.         putchar(byte);
  19.  
  20. }
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.